package com.workcell.workdata.xthings.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.List;

/**
 * @Author guoyu
 * @Date 2023/2/24 11:48
 * @Description
 */
public interface IotMonitorReportResult {

	/**
	 * 硬件占比
	 */
	@Data
	class HardwarePercent implements Serializable {

		@ApiModelProperty(value="值")
		private String value;


		@ApiModelProperty(value="百分比")
		private String name;

		@ApiModelProperty(value="标题")
		private String title;

	}


	@Data
	class HardwareData {

		@ApiModelProperty(value="标题")
		private String title;

		@ApiModelProperty(value="已接入台数")
		private Long devices;

		@ApiModelProperty(value="设备厂家数")
		private Integer deviceManufacturer;

		@ApiModelProperty(value="设备型号种类")
		private Long deviceType;

		@ApiModelProperty(value="未激活数")
		private Integer init;

		@ApiModelProperty(value="正常接入数")
		private Integer normal;

		@ApiModelProperty(value="异常接入数")
		private Integer unusual;

	}

	@Data
	class HardwareDataAnalysis implements Serializable{

		@ApiModelProperty(value="标题")
		private String title;

		@ApiModelProperty(value="在线/不在线台数")
		private List<HardwareDataAnalysisNum> numList;
	}

	@Data
	class HardwareDataAnalysisNum implements Serializable{
		@ApiModelProperty(value="状态")
		private String type;

		@ApiModelProperty(value="台数")
		private List<Long> number;
	}
}
